package com.cc.blog.admin.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cc.blog.common.model.BaseDO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 知识库目录
 * @author cc
 * @date 2024/10/3 10:42
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@TableName("t_wiki_catalog")
public class WikiCatalogDO extends BaseDO {

    @TableId(type = IdType.AUTO)
    private Long id;
    /** 知识库ID */
    private Long wikiId;
    /** 文章ID */
    private Long articleId;
    /** 目录标题 */
    private String title;
    /** 目录层级 */
    private Integer level;
    /** 父级目录ID */
    private Long parentId;
    /** 排序 */
    private Integer sort;
}
